/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sys.entity.Attachment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 附件信息DAO接口
 * @author wzl
 * @version 2018-10-12
 */
@MyBatisDao
public interface AttachmentDao extends CrudDao<Attachment> {
    //查询企业附件
    public List<Attachment> attachmentList (@Param("tableId")String tableId, @Param("tableName")String tableName);


    /**
     * @author Zhang Xingliang
     * @description 查看同一个七牛云上的附件存储记录条数
     * @date 14:07 2019/6/21
     * @params [attachment]
     * @return java.lang.Integer
     **/
    public Integer getAttachmentCntByFileName (Attachment attachment);
    
    /**
     * @author Zhang Xingliang
     * @description 判断是否上传免疫现场照片/免疫记录表照片， 抗体监测报告 进行提交疫苗补助验证
     * @date 20:24 2019/6/22
     * @params [attachment]
     * @return java.lang.Integer     
     **/
    public Integer findAttachmentCnt (Attachment attachment);

    /**
     *
     * @Title: invoicePhotoView
     * @author: sy
     * @date: 2019年06月14日 10:01
     * @Description: 查询发票图片
     * @param tblId
     * @param tblName
     * @return: java.lang.String
     */
    String invoicePhotoView(@Param("tblId") String tblId, @Param("tblName")String tblName,@Param("type")String type);


}